<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
内容编辑器
</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
}
-->
</style>
</head>
<body onload="initcontent()">
<table width="300" height="250" border="0" cellspacing="1">
<tr>
<td>
<textarea name="textarea" id="textarea" cols="45" rows="20"></textarea>
</td>
</tr>
<tr>
<td>
<input type="button" name="button" id="button" value="保存"
	onclick="savecont()" />
<input type="button" name="button2" id="button2" value="关闭"
	onclick="leavepage()" />
</td>
</tr>
</table>
<script language="javascript">
     var pcnt = document.getElementById('textarea');
     var ecnt = opener.document.getElementById('${param.id}');
	 //alert(ecnt);	
    function initcontent(){
	    
		 pcnt.value = ecnt.value;		 
	}
	function savecont(){
	     //alert(ecnt);		 
	     ecnt.value = pcnt.value;   
	}
	function leavepage(){
	     if(confirm('关闭该页面吗!')==true){
		    window.close();
	     }else{
		    return false;
		 }
	}
</script>
</body>
</html>
